<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>

<form class="form-signin" action="<%=basePath%>goods/add" method="post" enctype="multipart/form-data">
	<div class="modal-body onediv ">
		<p>
						 
      	<div class="control-group">
        		<span class="z5">商品名称</span>
        		<input type="text" name="name" class="oneinput"  placeholder="输入商品名" required autofocus>
        </div>
        <div class="control-group">
        		<span class="z5">商品单价</span>
        		<input type="text" name="price"  class="oneinput" placeholder="输入单价"  required autofocus>
        </div>
        <!-- <div class="control-group">
        		<span class="z5">商品类型</span>
        		<input type="text" name="type" class="oneinput"  placeholder="输入类型"  required autofocus>
        </div> -->
        
		<div class="control-group">
        		<span class="z5">商品产地</span>
        		<input type="text" name="origin" class="oneinput"  placeholder="输入产地"  required autofocus>
        </div>
        <div class="control-group">
        		<span class="z5">商品品牌</span>
        		<input type="text" name="brand" class="oneinput"  placeholder="输入品牌"  required autofocus>
        </div>
        <div class="control-group">
        		<span class="z5">商品图片</span>
        		<input type="file" name="imgFile"   class="oneinput inoneline" >
        </div>
        <div class="control-group">
        		<span class="z5">上架日期</span>
        		<div class="inoneline">
        		<input type="text" name="shelveDate" class="oneinput " data-beatpicker="true" data-beatpicker-position="['*','*']"  data-beatpicker-module="today,clear"
        		 value="<fmt:formatDate pattern="yyyy-MM-dd" value="<%=new Date()%>" />" />
        		<!-- <input type="text" name="bpublishDate" class="oneinput"  placeholder="日期"  required autofocus> -->
        		</div>
        </div>
        <div class="control-group">
        		<span class="z5">商品状态</span>
        		<select name="goods.state">
					<option value="1">在售</option>
					<option value="2">停产</option>
				</select>
        </div>
        <div class="control-group">
        		<span class="z5">商品广告</span>
        		<input type="text" name="msg" class="oneinput"  placeholder="轻快的广告词" required  autofocus>
        </div>
        <div class="control-group">
        		<span class="z5">商品简介</span>
        		<textarea  name="desc" placeholder="输入简介" required   autofocus></textarea>
        </div>
		</p>
	</div>
	<div class="modal-footer">
		 <!--<button class="btn" data-dismiss="modal" aria-hidden="true">放弃</button> -->
		 <button class="btn btn-large btn-success btn-block" type="submit">确认上架</button>
	</div>
</form>
